Skip to content

.agent/.github: add topology2 agent design guidance#10685

Open
kv2019i wants to merge 1 commit intothesofproject:mainfrom
kv2019i:202604-tplg2-agent-rules
Open

.agent/.github: add topology2 agent design guidance#10685
kv2019i wants to merge 1 commit intothesofproject:mainfrom
kv2019i:202604-tplg2-agent-rules

Conversation

@kv2019i
Copy link
Copy Markdown
Collaborator

@kv2019i kv2019i commented Apr 7, 2026

Add a canonical topology2 instruction file under .github/instructions and a matching companion rule under .agent/rules. Document topology v2 structure, reuse expectations, PCM and pipeline ID conventions, routing rules, platform overrides, and target registration guidance for agents working in tools/topology/topology2.

Our existing agent rules are in .agent, but github copilot doesn't understand these yet, so add the companion rule.

Copilot AI review requested due to automatic review settings April 7, 2026 10:42
@kv2019i
Copy link
Copy Markdown
Collaborator Author

kv2019i commented Apr 7, 2026

The path-based rules are not so standardized yet (copilot, antigravity. cursor all have different conventions). I now added copilot once here and a link to .agent/rules (as we already have .agent/rules for SOF).

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds canonical, in-repo guidance for authors/agents working on ALSA Topology v2 sources under tools/topology/topology2, and wires that guidance into both GitHub Copilot instructions and the existing .agent rule system.

Changes:

  • Added a new GitHub Copilot instruction file documenting topology2 structure, reuse expectations, ID/routing conventions, platform overrides, and CMake target registration.
  • Added a companion .agent rule to apply the same guidance when working under tools/topology/topology2/**.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/instructions/topology2-design.instructions.md New canonical topology2 design guidance for Copilot/agents scoped to tools/topology/topology2/**.
.agent/rules/topology2_design.md Companion .agent rule pointing contributors to the canonical instruction file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but can you resolve copilot opens.

Add a canonical topology2 instruction file under .github/instructions and a
matching companion rule under .agent/rules. Document topology v2 structure,
reuse expectations, PCM and pipeline ID conventions, routing rules, platform
overrides, and target registration guidance for agents working in
tools/topology/topology2.

Our existing agent rules are in .agent, but github copilot doesn't understand
these yet, so add the companion rule.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i kv2019i force-pushed the 202604-tplg2-agent-rules branch from b319bc7 to cb556ee Compare April 13, 2026 16:13
@kv2019i
Copy link
Copy Markdown
Collaborator Author

kv2019i commented Apr 13, 2026

V2 pushed:

  • added copilot review comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants